<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //splice
        // var list=[1,2,3,4];
        // list.splice(1, 2,'xd', 'kt', '11');
        // console.log(list);

        //join
        // var list=[1,2,3,4];
        // console.log(list.join('-'));

        //conncat
        var a=[1,2];
        var b=[3,4];
        var ab=a.concat(b);
        console.log(ab);

    </script>

</body>
</html>